<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>配送方式列表</title>
    <!--{include file='comm/icheck.tpl'}-->
    <style type="text/css">
        .send_box { margin-top: 20px;}
    </style>
</head>
<body>

<div class="container">

        <div class="comm_content">
            <table id="flex" style="display:none"></table>
        </div>


    <div id="pop1" style="display: none;">

        <form class="form-horizontal" id="sendForm" onsubmit="return false;">


            <div class="form-group">
                <label for="sendTypeName" class="col-sm-3 control-label"><span class="red">*</span> 配送方式名称：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control w300" id="sendTypeName" name="sendTypeName" />
                    <input type="hidden" id="sendTypeID" name="sendTypeID" value="0" />
                </div>
            </div>

            <div class="form-group">
                <label for="square-checkbox-1" class="col-sm-3 control-label">支持的支付类型：</label>
                <div class="col-sm-9">
                    <div class="fl" style="margin-right: 5px;">
                        <input type="checkbox" class="square-checkbox" id="square-checkbox-1" name="pay_type" value="1">
                        <label for="square-checkbox-1">货到付款</label>
                    </div>

                    <div class="fl">
                        <input type="checkbox" class="square-checkbox" id="square-checkbox-2" name="pay_type" value="2">
                        <label for="square-checkbox-2">在线支付</label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label for="description" class="col-sm-3 control-label">配送方式描述：</label>
                <div class="col-sm-9">
                    <textarea class="form-control w300" id="description" name="description"></textarea>
                </div>
            </div>

        </form>

    </div>

</div>

<script type="text/javascript">

    $("#flex").flexigrid({
        url:"/invokingAjax-backend/system/sendType.ajax?operFlg=1",
        dataType: "json",
        colModel : [
            {display: "操作", width : 100, align: 'center'},
            {display: "配送方式名称", width : 200},
            {display: "配送方式描述", width : 200},
            {display: "支付方式", width : 350},
            {display: "使用标志", width : 100, align: 'center'}
        ],
        <!--{if $edit_permission}-->
        buttons : [
            {name: "添加", bclass: "add", onpress : "send.edit.open"},
            {separator: true},
            {name: "删除", bclass: "delete", onpress : "send.del.check"},
            {separator: true},
            {name: "全选", bclass: "checkAll", onpress : "E.checkAllList"},
            {separator: true},
            {name: "取消全选", bclass: "cancelCheckAll", onpress : "E.cancelCheckAllList"}
        ],
        <!--{/if}-->
        sortname: "sendTypeID",
        sortorder: "asc",
        usepager: true,
        rp: 10,
        useRp: true,
        showTableToggleBtn: true
    });


</script>

<script language="JavaScript" src="/quanliadmin/docroot/js/system/sendType.js?v=20140707" type="text/javascript"></script>

</body>
</html>